package com.xueyi.aixihu.reqeust;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import javax.validation.constraints.NotBlank;

/**
 * @authoer:hxs
 * @createDate:2022/8/19
 * @description: 通过父级id列表查询子级id
 */
@Data
public class FindClassifyListByPidReq {

    /**
     * pid列表   通过逗号拼接    如2,3,4,5
     */
    @NotBlank(message = "请选择父级id")
    private String pidStr;

    public void format() {
        this.pidStr = StringUtils.isBlank(this.pidStr) ? null : this.pidStr.trim();
    }
}
